package com.film.rowMapper;

import java.sql.ResultSet;
import java.sql.SQLException;

import org.springframework.jdbc.core.RowMapper;

import com.film.domain.FilmType;

public class FilmTypeRowMapper implements RowMapper<FilmType> {

	@Override
	public FilmType mapRow(ResultSet res, int arg1) throws SQLException {
		FilmType filmType = new FilmType();
		filmType.setTypeId(res.getInt("type_id"));
		filmType.setTypeName(res.getString("type_name"));
		return filmType;
	}

}
